package com.bosc.automationui.scheduling;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
@Configuration
//@EnableScheduling
public class SyncScheduleTask {

//    @Scheduled(fixedRate = 5000)
    @Scheduled(cron = "0/5 * * * * ?")
    private void configureTask() {
        System.err.println("执行静态定时任务时间: " + LocalDateTime.now());
    }

}